#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestChance.h"

static struct TESTCASE_TestChance_test_10
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestChance_test_10()
      : TESTNGPP_NS::TestCase
        ( "should be able to get the reverse of one chance:chance1(0.9)==!chance(0.1)"
        , "Chance"
        , "TestChance"
        , 0
        , "TestChance.h"
        , 10)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestChance();
      }
      else
      {
         belongedFixture = dynamic_cast<TestChance*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_10()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestChance* belongedFixture;
} testcase_instance_TestChance_test_10 ;



static struct TESTCASE_TestChance_test_17
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestChance_test_17()
      : TESTNGPP_NS::TestCase
        ( "should be able to get the concurrence of two chance:changce3(0.06)==chance1(0.2)*chance2(0.3)"
        , "Chance"
        , "TestChance"
        , 0
        , "TestChance.h"
        , 17)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestChance();
      }
      else
      {
         belongedFixture = dynamic_cast<TestChance*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_17()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestChance* belongedFixture;
} testcase_instance_TestChance_test_17 ;



static struct TESTCASE_TestChance_test_25
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestChance_test_25()
      : TESTNGPP_NS::TestCase
        ( "should be able to get the either of two chance:chance3(0.98)==chance1(0.8)+chance2(0.9)"
        , "Chance"
        , "TestChance"
        , 0
        , "TestChance.h"
        , 25)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestChance();
      }
      else
      {
         belongedFixture = dynamic_cast<TestChance*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_25()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestChance* belongedFixture;
} testcase_instance_TestChance_test_25 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestChance[] = {
&testcase_instance_TestChance_test_10,
&testcase_instance_TestChance_test_17,
&testcase_instance_TestChance_test_25,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestChance
   ( "Chance"
   , "TestChance.h"
   , g_TESTCASEARRAY_TestChance
   , (sizeof(g_TESTCASEARRAY_TestChance)/sizeof(g_TESTCASEARRAY_TestChance[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestChance[] = {
&test_fixture_desc_instance_TestChance,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestChance
   ( "TestChance"
   , array_of_fixture_desc_TestChance
   , (sizeof(array_of_fixture_desc_TestChance)/sizeof(array_of_fixture_desc_TestChance[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestChance;
}


